package com.x.Part5_String.Test;

import com.sun.tools.javac.Main;

import java.util.Scanner;

/**
 * ClassName: Test1
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.03.15 16:52
 */
public class Test1 {
    public static void main(String[] args) {

        String str = null;

        while (true) {
            Scanner sc = new Scanner(System.in);
            str = sc.next();

            boolean flag = check(str);

            if(flag) {
                break;
            }
            else{
                continue;
            }
        }

        StringBuilder sb = new StringBuilder();

        for(int i = 0; i < str.length(); i++){
            char a = str.charAt(i);
            int result = a - '0';
            sb.append(changeChar(result));
        }

        System.out.println(sb.toString());


    }
    public static boolean check(String str){
        if(str.length()>9)
            return false;
        for(int i=0; i<str.length(); i++){
            char c = str.charAt(i);
            if(c>'9' || c<'0')
                return false;
        }
        return true;
    }

    public static String changeChar(int number){
        String[] arr ={"","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ"};
        return arr[number];
    }
}

